/**
 * <p>
 * 弹窗配置
 *
 * @Author：Roy
 * @Description：设备管理
 * @Date：Create by 2023-11-30 18:51:39
 */
const popConfig = {
  'device': {
    'device-add': {
      popTitle: '新增设备管理',
      popType: 'OperateDevice',
      visible: true,
      popConfig: {
        width: '50%',
        maxHeight: "5000px",
        destroy: true,
        popType: 'add'
      }
    },
    'device-detail': {
      popTitle: '设备详情',
      popType: 'OperateDeviceDetail',
      visible: true,
      popConfig: {
        width: '50%',
        destroy: true
      }
    },
    'device-running-status': {
      popTitle: '运行状态',
      popType: 'OperateDeviceRunning',
      visible: true,
      popConfig: {
        width: '50%',
        maxHeight: "5000px",
        destroy: true
      }
    },
    'device-edit': {
      popTitle: '编辑设备管理',
      popType: 'OperateDevice',
      visible: true,
      popConfig: {
        width: '50%',
        destroy: true
      }
    },
    'device-delete': {
      showType: 'confirm',
      confirmHeader: '提示',
      confirmContent: '将删除XXX的所有关联数据，是否确认删除？',
      splitProp: 'deviceName',
      paramsProp: { id: 'id' },
      path: 'device.deleteById'
    },
    'device-import': {
      popTitle: '导入',
      popType: 'AddFile',
      visible: true,
      popConfig: {
        width: '50%',
        hideFooterBtn: true,
        // 上传接口
        upLoadPath: '/energy-carbon/ecp-admin/device/upload',
        // 模板下载参数
        tplName: 'deviceRenderer'
      }
    },
    'device-deleteBatch': {
      showType: 'confirm',
      dataType: 'multipleList',
      confirmHeader: '提示',
      confirmContent: '将批量删除XXX设备及所有绑定关联的数据，是否确认删除？',
      splitProp: 'deviceName',
      paramsProp: { ids: 'id' },
      path: 'device.batchDelete'
    }
  }
}

export default {}
export { popConfig }
